home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / Fresco / build / Unix / config / cf / x386.cf < prev    next >
Text File  |  1995-07-12  |  5KB  |  158 lines

  1. XCOMM platform:  $XConsortium: x386.cf,v 1.11 93/10/13 15:32:46 rws Exp $
  2.  
  3. /*****************************************************************************
  4.  *              Site-specfic parameters                            *
  5.  *****************************************************************************/
  6.  
  7. /*
  8.  * there are some switches to set appropriate...
  9.  */
  10.  
  11. #define HasGcc            YES    /* doesn't work for SVR4 */
  12. #define HasNdbm            YES    /* correct for GNU dbm & SVR4 */
  13. #define StripInstalledPrograms    YES
  14. #define X386Server        YES
  15. #define ExtensionOSDefines    -DXTESTEXT1
  16. #define MotifBC                YES
  17.  
  18. /*****************************************************************************
  19.  *                        Do not change anything below                       *
  20.  *****************************************************************************/
  21.  
  22. /* You must manually compute BootstrapCFlags for initial build */
  23. #define BootstrapCFlags        OSDefines OSRelease
  24.  
  25. #define StandardDefines        OSDefines OSRelease
  26. #define LdCombineFlags        -r
  27.  
  28. #if defined(i386SVR3Architecture)
  29.  
  30. #define SystemV            YES
  31.  
  32. #define NeedBerklib        YES
  33. #define HasSymLinks        NO
  34.  
  35. /*
  36.  * V/386 Release 3.2
  37.  */
  38. #ifdef ISC
  39. /* INTERACTIVE UNIX Version 2.2.1 */
  40. # define OSVendor        "Interactive System Corp."
  41. # define OSDefines        -DISC
  42. # define LocalLibraries        -lpt
  43. # define PosixLibraries        -lcposix
  44. # define SocketLibraries        -linet
  45. #endif
  46.  
  47. #ifdef ESIX
  48. #define OSVendor        "ESIX System Inc."
  49. #define OSDefines        -DESIX
  50. #define LocalLibraries        -lpt
  51. #define SocketLibraries        -lnet -lnsl_s
  52. #define PosixLibraries        /**/
  53. #endif
  54.  
  55. #ifdef SCO
  56. #define OSDefines        -DSCO -DBROKEN_FTOL -DNO_PROTOTYPE -D_SVID
  57. #define OSVendor        "Santa Cruz Operation Ltd."
  58. #define LocalLibraries        -lpt
  59. #define SocketLibraries        -lsocket 
  60. #define PosixLibraries        /**/
  61. #endif
  62.  
  63. #ifdef ATT
  64. #define OSDefines        -DATT
  65. #define OSVendor        "AT&T"
  66. #define LocalLibraries        -lpt
  67. #define SocketLibraries        -lnet -lnsl_s    /* just a guess */
  68. #define PosixLibraries        /**/
  69. #endif
  70.  
  71. #define OSName            Unix System V/386 Release 3.2
  72. #define OSMajorVersion        3
  73. #define OSMinorVersion        2
  74. #define OSRelease        -DSYSV -DSYSV386
  75.  
  76. #if HasGcc
  77. # define CcCmd gcc -DNO_ASM -fstrength-reduce -fpcc-struct-return -fwritable-strings
  78. # define LibraryCcCmd gcc -DNO_ASM -fstrength-reduce -fpcc-struct-return
  79. # define ShlibDefines -D__GNUC__ -DGNULIB=/usr/local/lib/gcc-gnulib
  80. #else
  81. # define ShlibDefines /**/
  82. #endif
  83.  
  84. #if HasSockets
  85. /* # define ConnectionFlags -DLOCALCONN -DTCPCONN */
  86. # define ConnectionFlags -DTCPCONN
  87. # define ExtraLibraries SocketLibraries LocalLibraries -lc_s PosixLibraries
  88. #else
  89. # define ConnectionFlags -DLOCALCONN
  90. # define ExtraLibraries $(LIBDIR)/etc/inetemul.o LocalLibraries -lc_s PosixLibraries
  91. #endif
  92.  
  93. /* #include <sv3Lib.rules> */  /* not working yet */
  94.  
  95. /*
  96.  * Man pages need to be formatted when installed, so override the default
  97.  * imake rules.
  98.  */
  99. #define InstallManPageLong(file,destdir,dest)                           @@\
  100. install.man:: file.man                                                  @@\
  101.     $(RM) destdir/dest.$(MANSUFFIX)                    @@\
  102.     cat file.man | neqn | nroff -man >/tmp/file.man          @@\
  103.     $(INSTALL) -c $(INSTMANFLAGS) /tmp/file.man destdir/dest.$(MANSUFFIX) @@\
  104.     $(RM) /tmp/file.man
  105.  
  106. #define InstallMultipleMan(list,dest)                                   @@\
  107. install.man:: list                                                      @@\
  108.     @case '${MFLAGS}' in *[i]*) set +e;; esac; \                    @@\
  109.     for i in list; do \                                             @@\
  110.         (set -x; \                        @@\
  111.         $(RM) dest/$$i; \                    @@\
  112.         cat $$i | neqn | nroff -man >/tmp/$$i; \          @@\
  113.         $(INSTALL) -c $(INSTMANFLAGS) /tmp/$$i dest/$$i; \    @@\
  114.         $(RM) /tmp/$$i); \                    @@\
  115.     done
  116.  
  117. /* If you have trouble with make bombing out in Xlib, try uncommenting this. */
  118. /* You will not get dependencies as a result, but better than nothing. */
  119. /* #define DependTarget3(srcs1,srcs2,srcs3) */
  120.  
  121. #endif /* i386SVR3Architecture */
  122.  
  123.  
  124. /*
  125.  * V/386 Release 4.0
  126.  */
  127. #if defined(i386SVR4Architecture)
  128.  
  129. #define SystemV4        YES
  130.  
  131. /* this is now just for Dell's one */
  132.  
  133. #ifdef DELL
  134. #define OSDefines        -DDELL
  135. #define OSVendor        "DELL Computer Corp."
  136. #endif
  137.  
  138. #define OSName            Unix System V/386 Release 4.0
  139. #define OSMajorVersion        4
  140. #define OSMinorVersion        0
  141. #define OSRelease        -DSVR4 -DSYSV386
  142.  
  143. #if HasGcc
  144. # define CcCmd         gcc -ansi -fstrength-reduce -fpcc-struct-return -Di386
  145. # if HasSharedLibraries
  146. #  define LibraryCcCmd    cc -Xc -Di386 -Dasm=__asm
  147. # endif
  148. #else
  149. # define CcCmd        cc -Xc -Di386 -Dasm=__asm
  150. #endif
  151.  
  152. #include <sv4Lib.rules>
  153.  
  154. #endif /* i386SVR4Architecture */
  155.  
  156.  
  157. XCOMM operating system:  OSName OSVendor
  158.